<?php
return <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
    xmlns:html="http://www.w3.org/TR/REC-html40"
    xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes" />
    <xsl:template match="/">
        <html xmlns="http://www.w3.org/1999/xhtml">
            <head>
                <title>XML Sitemap</title>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <meta name="robots" content="noindex,follow" />
                <style type="text/css">
                    body {
                        font-family:"Microsoft YaHei","SimSun","sans-serif";
                        font-size:14px;
                    }
                    
                    #intro {
                        padding:5px 13px 5px 0;
                        margin:10px 10px 10px 0;
                        font-size: 14px;
                        color: #666;
                    }
                    .text-gradient{
                        font-size: 16px;
                        font-weight: bolder;
                        -webkit-background-clip: text;
                        background-clip: text;
                        -webkit-text-fill-color: transparent;
                        background-image: -mos-linear-gradient(-40deg, #00c6fb, #005bea);
                        background-image: -webkit-linear-gradient(-40deg, #00c6fb, #005bea);
                        background-image: linear-gradient(-40deg, #00c6fb, #005bea);
                    }
                    
                    #intro p {
                        line-height:	16px;
                        margin: 0;
                        padding: 3px;
                    }
                    #intro strong {
                        font-weight:normal;
                    }
                    td {
                        font-size:11px;
                        padding: 7px 8px;
                        padding-right:30px;
                    }
                    
                    th {
                        text-align:left;
                        padding:7px;
                        font-size:11px;
                    }
                    table{
                        border-collapse: collapse;
                        cellpadding: 0;
                        width: 100%;
                    }
                    table tr:nth-child(odd) td {
                        background-color: #eee !important;
                    }

                    table tr:hover td{
                        background-color: #c6c6c6;
                    }
                    a {
                        color:black;
                        text-decoration: none;
                    }
                    a:hover{
                        text-decoration: underline;
                    }
                    main{
                    width: 900px;
                    margin: 0 auto;
                    }
                </style>
            </head>
            <body>
                <main>
        <h1>XML Sitemap Index</h1>
        <div id="intro">
            <p>
                This is a XML Sitemap which is supposed to be processed by search engines
            </p>
            <p>
                Generated by <a class="text-gradient" href="https://www.blog1997.com">Blog1997</a> seo tools.
            </p>
            <p>This XML Sitemap contains <xsl:value-of select="count(sitemap:sitemapindex/sitemap:sitemap)"/> sitemaps.</p>
        </div>
        <div id="content">
            <table cellpadding="5">
                <tr style="border-bottom:1px black solid;">
                    <th>URL of sub-sitemap</th>
                    <th>Last modified (GMT)</th>
                </tr>
                <xsl:for-each select="sitemap:sitemapindex/sitemap:sitemap">
                    <tr>
                        <td>
                            <xsl:variable name="itemURL">
                                <xsl:value-of select="sitemap:loc"/>
                            </xsl:variable>
                            <a href="{\$itemURL}">
                                <xsl:value-of select="sitemap:loc"/>
                            </a>
                        </td>
                        <td>
                            <xsl:value-of select="concat(substring(sitemap:lastmod,0,11),concat(' ', substring(sitemap:lastmod,12,5)))"/>
                        </td>
                    </tr>
                </xsl:for-each>
            </table>
        </div>
        </main>
            </body>
        </html>
    </xsl:template>
</xsl:stylesheet>
EOF;
